import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:Smart/utils/screen_unit/gs_screen_util.dart';

//OTA
class UpDatePage extends StatefulWidget {
  _UpDatePageState createState() => _UpDatePageState();
}

class _UpDatePageState extends State<UpDatePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(children: [
        Container(
          margin: EdgeInsets.fromLTRB(20, 25, 150, 0),
          //顶部返回图标按钮和标题
          child: Row(
            children: [
              IconButton(
                  icon: Icon(Icons.arrow_back_ios),
                  onPressed: () {
                    Navigator.of(context).pop();
                  }),
              SizedBox(width: 60),
              Center(
                child: Text('OTA版本'),
              )
            ],
          ),
        ),
        Container(
          margin: EdgeInsets.fromLTRB(30, 30, 30, 100),
          height: 80,
          width: 690,
          //设置边框
          decoration: BoxDecoration(
              //设置阴影效果
              boxShadow: [
                BoxShadow(
                    color: Color(0xff9698A3),
                    offset: Offset(5.0, 5.0),
                    blurRadius: 10.0)
              ],
              color: Color(0xffFFFFFF),
              //设置边框圆角
              borderRadius: BorderRadius.circular(10.w)),

          child: Center(
              child: ListTile(
                  leading: Image.network(
                    'https://dss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1387464887,1926086609&fm=26&gp=0.jpg'),
                      title: Text('smart 1.1.0'),
              )),
        ),
        Container(
          margin: EdgeInsets.fromLTRB(50, 100, 50, 0),
          child: Text('当前已是最新版本'),
        )
      ]),
    );
  }
}
